package IOStreamTest;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @author 刘全
 * @date 2021/8/1
 */
public class CopyTest1 {
    public static void main(String[] args) throws IOException {
        //创建字节输入流,准备读数据
        FileInputStream fis = new FileInputStream("C:\\Users\\lq\\Desktop\\44.psd");
        //创建字节输出流,准备写数据
        FileOutputStream fos = new FileOutputStream("myideaTest\\44.psd");
        int b;
        while ((b = fis.read()) != -1) {
            fos.write(b);
        }
        fis.close();
        fos.close();
    }
}
